package com.fb.model;

import java.io.Serializable;

public class Bing implements Serializable {
    private Long bingId;

    private String name;

    private static final long serialVersionUID = 1L;

    /**
     * @return bing_id
     */
    public Long getBingId() {
        return bingId;
    }

    /**
     * @param bingId
     */
    public void setBingId(Long bingId) {
        this.bingId = bingId;
    }

    /**
     * @return name
     */
    public String getName() {
        return name;
    }

    /**
     * @param name
     */
    public void setName(String name) {
        this.name = name;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Bing other = (Bing) that;
        return (this.getBingId() == null ? other.getBingId() == null : this.getBingId().equals(other.getBingId()))
            && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getBingId() == null) ? 0 : getBingId().hashCode());
        result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", bingId=").append(bingId);
        sb.append(", name=").append(name);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}